package com.tms.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;


/**
 * 存储订单的详细信息(Order)表实体类
 *
 * @author makejava
 * @since 2024-12-27 23:10:31
 */
@TableName("order")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order implements Serializable {
    //主键
    private Integer orderId;
    //外键，关联到用户表
    private Integer userId;
    //外键，教材id
    private Integer bookId;
    //价格
    private Float price;
    //数量 默认值为1
    private Integer count;
    //总价
    private Float pay;
    //状态，默认0; 0-待支付 1-取消支付 2-已支付
    private Integer state;

}

